package com.leyou.search.service;

import com.leyou.search.dto.SearchParamDTO;
import com.leyou.search.entity.Goods;
import com.leyou.starter.elastic.entity.PageInfo;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @author mySun
 * @create 2021-07-23 15:19
 */
public interface SearchService {
    Mono<List<String>> getSuggestion(String key);

    Mono<PageInfo<Goods>> pageGoods(SearchParamDTO searchParamDTO);


    Mono<Map<String,List<?>>> getFilterCondition(SearchParamDTO searchParamDTO);
}
